<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <style>
      body {
        height: 3000px;
      }
    </style>
  </head>
  <body>
    <script>
      //鼠标事件对象
      document.addEventListener('click', function (e) {
        //1. 鼠标在可视区的x y 坐标
        console.log(e.clientX);
        console.log(e.clientY);
        console.log('-------------');
        

        //2page 鼠标在页面文档x  y
        console.log(e.pageX);
        console.log(e.pageY);
        //3  screen    屏幕坐标
        console.log(e.screenX);
        console.log(e.screenY);

      });
    </script>
  </body>
</html>
